<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>安装通商城_建筑设备/材料采购_安装配件价格_安装通</title>
    <meta name="description" content="安装通商城拥有种类齐全的建筑安装材料，可以为您提供建筑设备，安装配件、建筑/安装材料等产品的详细参数，厂家资料，价格行情等信息，帮助您快速完成采购任务。">
    <meta name="keywords" content="建筑安装材料,建筑配件,建筑安装设备,建筑材料采购,安装材料价格">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="/res/css/common/aztHeadFootMal.css" rel="stylesheet">
    <link href="/res/css/mall/mallIndex.css" rel="stylesheet">
</head>
[#assign link="member" /]
<body class="indexPage">
<ul class="leftConnect">
    <li class="guide">楼层导航</li>
[#if floors??]
    [#list floors as floor ]
        <li onclick="location.href='#floor_${floor_index}'" >
            <h5 class="num" >${floor_index+1}F</h5>
            <h5 style="padding: 5px;">${floor.categoryName!}</h5>
        </li>
    [/#list]
[/#if]

    <li class="arrow" onclick="location.href='#';"></li>
</ul>
[#include "/front/common/front_headMal.html"]

<div class="content indexContent fix">
    <div class="firstindexBox">
        <div class="indexBanner">
        [@advertise_template code='MEMBER_INDEX' /]
       </div>
    </div>
    <div class="hotGod w1200">
        <img alt="" src="/res/images/home/hot_03.jpg"/>
    [#if hots?? ]
        <div>

            <ul>
                [#list hots as hot ]
                    [#if hot_index < 16]
                <li
                        [#if hot_index%4==0]
                        style="margin-left: 0px;"
                        [#elseif (hot_index+1)%4==0] 
                        [/#if]
                >
                    <div style="cursor: pointer;" onclick="window.open('/offer/${(hot.productExt.id)!0}.html')" target="_blank" >
                        <p style="height: 190px;">
                            <img class="imgAnimate" alt="" src="${(hot.productExt.firstImg)!}"/>
                        </p>
						<h4 style="height: 48px;" title="${(hot.productExt.name)!}"><a style="display: inline-block;width:220px;">${(hot.productExt.name)!}</a></h4>
                        <h3>￥${hot.productExt.minHotPrice?string("0.00")}
                        	<span style="float: right; margin-right: 20px;text-decoration: line-through;margin-top: 4px;">￥${hot.productExt.minMemberPrice?string("0.00")}</span>
                        </h3>
                    </div>
                </li>
                    [/#if]
                [/#list]
            </ul>
            <span class="page pre" onclick="pre()"></span>
            <span class="page next" onclick="next()"></span>
        </div>
        [/#if]
    </div>

    [#if floors??]
    [#list floors as floor ]
    <div class="flor w1200">
        <div class="title">
            <h3><span id="floor_${floor_index}">${floor_index+1}F</span>${floor.categoryName!}</h3>
            <!--链到筛选页-->
            <a class="more" href="/selloffer?categoryIds=${floor.categoryId!}">查看更多></a>
        </div>
        <div class="contentFlor">
            [#if floor.companies?? ]
            <ul class="fll">
                [#list floor.companies as company ]
                    [#if company_index < 7 ]
                    [#if company_index==0 ]
                        <li class="fir" style="background-image: url(${company.companyImg!});position: relative;">
                            [#if company.companyUrl?? && company.companyUrl != '']
                            <h4 class="comName"></h4>
                            <button type="button" >进入店铺 </button>
                            <em class="coverEm" onclick="location.href='${company.companyUrl!}'"></em>
                            [/#if]
                        </li>
                    [#elseif company_index%2!=0 ]
                        [#--后面是来判断是不是最后一个li的--]
                        <li class="bordLeft h73"  >
                            <p [#if company_index==5 ||(company_index==3&&floor.companies?size<5)||(company_index==1&&floor.companies?size<3)  ]style="height: 76px;"[/#if]>
                        [#if company.companyUrl?? && company.companyUrl != '']<a href="${floor.companies[company_index].companyUrl!}" >[/#if]
                                    <img alt="" src="${floor.companies[company_index].companyImg!}"/>
                        [#if company.companyUrl?? && company.companyUrl != '']</a>[/#if]
                            </p>
                            [#if company_has_next]
                            <p>
                                [#if company.companyUrl?? && company.companyUrl != '']<a href="${floor.companies[company_index+1].companyUrl!}" >[/#if]
                                <img alt="" src="${floor.companies[company_index+1].companyImg!}"/>
                                [#if company.companyUrl?? && company.companyUrl != '']</a>[/#if]
                            </p>
                            [/#if]
                        </li>
                    [/#if]
                    [/#if]
                [/#list]

            </ul>
            [/#if]

        [#if floor.products?? ]
            <ul class="flr">
                [#list floor.products as product ]
                    [#if product_index < 8 ]
                <li  style="[#if product_index==0] margin-left: -3px;[/#if]cursor:pointer;" >
                    <div class="imgLink" style="display:inline-block;height: 234px;" onclick="window.open('/offer/${product.id!}.html')">
                        <p>
                            <img  alt="${product.name!}" title="${product.name!}"   src="/res/images/defat.png" original="${product.firstImg!}"   >
                        </p>
                        <a class="proName">${product.name!}</a>
                        <h3>￥${product.minMemberPrice?string("0.00")}</h3>
                    </div>
                    <button class="fight" type="button" onclick="location.href='/offer/${product.id!}.html';">抢购</button>
                </li>
                    [/#if]
                [/#list]
            </ul>
        [/#if]
        </div>

    </div>
    [/#list]
    [/#if]

</div>
[#include "/front/common/front_foot.html"]
</body>
<script src="/res/js/common/jquery.1.9.1.min.js"></script>
<script src="/res/js/common/jquery.ellipsis.js"></script>
<script src="/res/third/layer/layer.js"></script>
<script src="/res/third/layer/layer.extends.js"></script>
<script src="/res/js/common/lazyload.js"></script>
<script type="text/javascript">
    /*返回顶部**/
    $(window).scroll(function(){
        var scrollTop=$(document).scrollTop();
        if((scrollTop > 500)|(scrollTop==500)){
        	$(".leftConnect").show();
            $(".leftConnect li.arrow").show();
        }
        if(scrollTop <500){
        	$(".leftConnect").hide();
            $(".leftConnect li.arrow").hide();
        }
    }).trigger('scroll');
    var indHot=0;
    var szHot=Math.ceil($(".hotGod>div ul").find("li").size()/4);//畅销商品屏数
    /*上一个**/
    function pre(){
        var mgl=$(".hotGod>div ul li:eq(0)").css("margin-left");
        if(mgl=="0px"){
            indHot=-(szHot-1);
            $(".hotGod>div ul li:eq(0)").css("margin-left",indHot*992);
        }else{
            indHot++;
            $(".hotGod>div ul li:eq(0)").css("margin-left",indHot*992);
        }
    }
    /*下一个**/
    function next(){
        var mgl=$(".hotGod>div ul li:eq(0)").css("margin-left");
        if(mgl==-992*(szHot-1)+"px"){
            indHot=0;
            $(".hotGod>div ul li:eq(0)").css("margin-left",indHot*992);
        }else{
            indHot--;
            $(".hotGod>div ul li:eq(0)").css("margin-left",indHot*992);
        }
    }
    function ShowjQueryFlash(i) {
        $("#focus ul>li").eq(i).animate({
            opacity : 1,zIndex:1
        }, 1000).siblings("li").animate({
            opacity : 0,zIndex:0
        }, 1000);
        $("#focus ul>li").eq(i).find("a").animate({
            opacity : 1
        }, 1000);
        $("#focus ul>li").eq(i).siblings("li").each(function(){
            $(this).find("a").animate({
                opacity : 0
            }, 1000);
        });
        $("#focus .btn span").eq(i).addClass("on").siblings().removeClass("on");
    }

    $(function() {
    	$("#focus .preNext .pre").click(function(){ 
    		index=$("#focus .btn span.on").index();
    		if(index==0){
    			index=maximg-1;
    		}else{
    			index--;
    		}
    		ShowjQueryFlash(index);
    	});
    	
    	$("#focus .preNext .next").click(function(){ 
    		index=$("#focus .btn span.on").index();
    		if(index==maximg-1){
    			index=0;
    		}else{
    			index++;
    		}
    		ShowjQueryFlash(index);
    	});
        //上一页、下一页按钮透明度处理
        $(".hotGod span.page").each(function(){
            $(this).hover(function() {
                $(this).stop(true,false).animate({"opacity":"0.5"},300);
            },function() {
                $(this).stop(true,false).animate({"opacity":"0.2"},300);
            });
        });
        $(".hotGod>div ul li a").each(function(){
			$(this).ellipsis({maxWidth:180,maxLine:2});
		}); 
       
        $(".preNext").css("opacity",0.2).hover(function() {
            clearInterval(MyTime);
            $(this).stop(true,false).animate({"opacity":"0.5"},300);
        },function() {
            $(this).stop(true,false).animate({"opacity":"0.2"},300);
        });
        $(".conn ul a").each(function(){
            $(this).ellipsis({maxWidth:100,maxLine:1});
        });
        $(".contentFlor ul.flr li a").each(function(){
            $(this).ellipsis({maxWidth:150,maxLine:2});
        });

        $(".hotGod>div").hover(function(){
            $(".hotGod span.page").show();
        },function(){
            $(".hotGod span.page").hide();
        });
        var index = 0;
        var maximg = $("#focus").find("li").size();
        //商城广告焦点图
        $("#focus .btn span").hover(function() {
            if (MyTime) {
                clearInterval(MyTime);
            }
            index = $("#focus .btn span").index(this);
            MyTime = setTimeout(function() {
                ShowjQueryFlash(index);
                $('#focus ul').stop();
            }, 400);

        }, function() {
            clearInterval(MyTime);
            MyTime = setInterval(function() {
                ShowjQueryFlash(index);
                index++;
                if (index == maximg) {
                    index = 0;
                }
            }, 3000);
        });
        //滑入 停止动画，滑出开始动画.
        $('#focus ul li').hover(function() {
            if (MyTime) {
                clearInterval(MyTime);
            }
        }, function() {
            MyTime = setInterval(function() {
                ShowjQueryFlash(index);
                index++;
                if (index == maximg) {
                    index = 0;
                }
            }, 3000);
        });
        //自动播放
        var MyTime = setInterval(function() {
            ShowjQueryFlash(index);
            index++;
            if (index == maximg) {
                index = 0;
            }
        }, 3000);
    });
</script>
</html>